{% extends "base.html" %}
{%block title %}Web地址上传图片 {% endblock %}
{% block content %}
<form method="post" action="/a/g/" class="f">
<fieldset>
	<p>
		{{error}}
	</p>
    <p>
    <select name="album" id="album-select">
        {% for album in albums %}
        <option value="{{album.slug}}" {% ifequal album.slug album-select%} selected="selected" {% endifequal %}>{{album.name}}({{album.count}})</option>
        {% endfor %}
    </select>
	 <label for="album">选择相册</label>
    </p>
	<p>
		<input  name="name" type="text" style="width:200px;" maxlength="100" value="{{name}}"> <label for="name">文件名</label>
	</p>
	<p>
		<input  name="u" type="text" style="width:400px;" maxlength="100" value="{{u}}">
    <p>
        <p><textarea id="des" name="des" style="width:400px"></textarea></p>
    </p>
    <p>
        <input type="submit" value="保存">
    </p>
</fieldset>
</form>
{% endblock %}